package com.ebupt.migu.music.market.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ebupt.migu.music.common.entity.Page;
import com.ebupt.migu.music.market.dto.MarketSmsCountDTO;
import com.ebupt.migu.music.market.entity.MarketSmsStrategy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ebupt.migu.music.market.vo.MarketSmsCountPageVO;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * @author 23265
 * @description 针对表【market_sms_strategy(运营短信策略)】的数据库操作Mapper
 * @createDate 2024-09-10 10:46:24
 * @Entity com.ebupt.migu.music.market.entity.MarketSmsStrategy
 */
@Mapper
@DS("mysql_mg")
public interface MarketSmsStrategyMapper extends BaseMapper<MarketSmsStrategy> {

    int updateExecuteStatusByStrategyId(@Param("executeStatus") String executeStatus, @Param("strategyId") String strategyId);

    // 分页查询方法
    IPage<MarketSmsCountDTO> effectListPage(@Param("page") IPage<?> page, @Param("param") MarketSmsCountPageVO param);


    IPage<MarketSmsCountDTO> export(@Param("page") IPage<?> page, @Param("param") MarketSmsCountPageVO params);


}
